package com.kgc.service.impl;

import com.kgc.dao.TicketCityMapper;
import com.kgc.pojo.TicketCity;
import com.kgc.service.TicketCityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TicketCityServiceImpl implements TicketCityService {
    @Autowired
    TicketCityMapper ticketCityMapper;
    @Override
    @Cacheable(value = "ticketCity")
    public List<TicketCity> getTicketCity() {
        return ticketCityMapper.selectByExample(null);
    }
}
